<?php /* Smarty version Smarty-3.1.12, created on 2013-06-03 23:01:42
         compiled from "D:\redwazi2\sys-admin\template\goods\category_edit.htm" */ ?>
<?php /*%%SmartyHeaderCode:2734551acafd625f8b2-20893014%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'fd174c4cac8e60df85a62b508f9850067c7fd179' => 
    array (
      0 => 'D:\\redwazi2\\sys-admin\\template\\goods\\category_edit.htm',
      1 => 1370271132,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '2734551acafd625f8b2-20893014',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'category' => 0,
    'categorys' => 0,
    'child0' => 0,
    'child1' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_51acafd6392b14_27040369',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51acafd6392b14_27040369')) {function content_51acafd6392b14_27040369($_smarty_tpl) {?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
<title>Yooes管理中心</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="/sys-admin/css/general.css" rel="stylesheet" type="text/css">
<link href="/sys-admin/css/main.css" rel="stylesheet" type="text/css">
<script src="/sys-admin/js/jquery.js" type="text/javascript"></script>
<script src="/sys-admin/js/cn_message.js" type="text/javascript"></script>
<script src="/sys-admin/js/validate.js" type="text/javascript"></script>
</head>
<body>
<h1><span class="action-span1">商品分类修改</span></h1>
<div class="list-div">
<form action="/sys-admin/action/goods/category.php" method="post">
<input type="hidden" name="met" value="edit"/>
<input type="hidden" name="id" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['cat_id'];?>
"/>
<table>
 <tr>
    <td class="label"><span class="require-field">*</span>名称</td>
    <td><input type="text" name="name" maxlength="40" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['cat_name'];?>
" size="20" vtype="required" vname="cate_add_name"/><span id="cate_add_name_m"></span></td>
 </tr>
 <tr>
    <td class="label">父分类</td>
    <td><select name="parentid">
    <option value="0">顶级分类</option>
    <?php  $_smarty_tpl->tpl_vars['child0'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['child0']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['categorys']->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['child0']->key => $_smarty_tpl->tpl_vars['child0']->value){
$_smarty_tpl->tpl_vars['child0']->_loop = true;
?>
        <?php if ($_smarty_tpl->tpl_vars['child0']->value['cat_id']!=$_smarty_tpl->tpl_vars['category']->value['cat_id']){?>
		    <option value="<?php echo $_smarty_tpl->tpl_vars['child0']->value['cat_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['child0']->value['cat_id']==$_smarty_tpl->tpl_vars['category']->value['parent_id']){?>selected="selected"<?php }?>><?php echo $_smarty_tpl->tpl_vars['child0']->value['cat_name'];?>
</option>  
		    <?php if (count($_smarty_tpl->tpl_vars['child0']->value['childs'])>0){?>
		  		<?php  $_smarty_tpl->tpl_vars['child1'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['child1']->_loop = false;
 $_from = $_smarty_tpl->tpl_vars['child0']->value['childs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['child1']->key => $_smarty_tpl->tpl_vars['child1']->value){
$_smarty_tpl->tpl_vars['child1']->_loop = true;
?>
		  			 <?php if ($_smarty_tpl->tpl_vars['child1']->value['cat_id']!=$_smarty_tpl->tpl_vars['category']->value['cat_id']){?>
		  			 	<option value="<?php echo $_smarty_tpl->tpl_vars['child1']->value['cat_id'];?>
" <?php if ($_smarty_tpl->tpl_vars['child1']->value['cat_id']==$_smarty_tpl->tpl_vars['category']->value['parent_id']){?>selected="selected"<?php }?>>　　　<?php echo $_smarty_tpl->tpl_vars['child1']->value['cat_name'];?>
</option>  
		  			 <?php }?>
		  		<?php } ?>
	  		<?php }?>
	  	<?php }?>
	<?php } ?> 
    </select>
    </td>
 </tr>
 <tr>
    <td class="label">单位</td>
    <td><input type="text" name="unit" maxlength="30" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['cat_unit'];?>
"  size="20"/></td>
 </tr>
 <tr>
    <td class="label">显示</td>
    <td>
		<select name="isshow">
	       <option value="1" <?php if ($_smarty_tpl->tpl_vars['category']->value['is_show']==1){?>selected="selected"<?php }?>>是</option>
	       <option value="0" <?php if ($_smarty_tpl->tpl_vars['category']->value['is_show']==0){?>selected="selected"<?php }?>>否</option>
         </select>
   </td>
 </tr>
  <tr>
    <td class="label">菜单显示</td>
   <td>
		<select name="isshownav">
	       <option value="1" <?php if ($_smarty_tpl->tpl_vars['category']->value['is_show_nav']==1){?>selected="selected"<?php }?>>是</option>
	       <option value="0" <?php if ($_smarty_tpl->tpl_vars['category']->value['is_show_nav']==0){?>selected="selected"<?php }?>>否</option>
         </select>
   </td>
 </tr>
 <tr>
    <td class="label">排序</td>
    <td><input type="text" name="sortorder" maxlength="4" value="<?php echo $_smarty_tpl->tpl_vars['category']->value['sort_order'];?>
" size="6"  vtype="not-required-n" vname="sort_order"/><span id="sort_order_m"></span></td>
  </tr>
 <tr>
    <td class="label"></td>
    <td>
      <input type="submit"  name="Submit"   value="保存 " class="button" onclick="return checkForm();"/>&nbsp;&nbsp;&nbsp;
   </td>
  </tr>
  </table>
 </form>
</div>
</body></html><?php }} ?>